home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / include / nessus / nessusudp.h < prev    next >
C/C++ Source or Header  |  2006-06-13  |  547b  |  26 lines

  1. #ifndef NESSUS_UDP_H__
  2. #define NESSUS_UDP_H__
  3.  
  4. #ifdef HAVE_NETINET_UDP_H
  5. #include <netinet/udp.h>
  6. #endif
  7.  
  8. #if !defined(HAVE_STRUCT_UDPHDR) || HAVE_STRUCT_UDPHDR == 0
  9. #define HAVE_STRUCT_UDPHDR 1
  10. struct udphdr {
  11.     u_short    uh_sport;        /* source port */
  12.     u_short    uh_dport;        /* destination port */
  13.     u_short    uh_ulen;        /* udp length */
  14.     u_short    uh_sum;            /* udp checksum */
  15. };
  16. #endif
  17.  
  18. #if defined(HAVE_STRUCT_UDPHDR) && !defined(HAVE_BSD_STRUCT_UDPHDR)
  19. #define uh_sport source
  20. #define uh_dport dest
  21. #define uh_ulen len
  22. #define uh_sum check
  23. #endif
  24.  
  25. #endif
  26.